<?php
namespace app\patrol\validate;
use think\Validate;

/**
 * 社区巡店区域和模块信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2019/09/10
 * Time: 17:20
 */
class CpRegionModular extends Validate{

    protected $rule = [
        'is_qualified' => 'require',
        'action'       => 'require'
    ];

    protected $message = [
        'is_qualified.require' => '是否合格必须填写',
        'action.require'       => '动作必须填写'
    ];

    protected $scene = [
        'add'  => ['is_qualified','action']
    ];
}